// 封装与用户登录相关的接口函数
import http from "@/utils/http"

// 手机号是否被注册的接口
       
 export const checkTelAPI = (data:any) => {
    return http({
        url: "/api/user/docheckphone",
        method: "post",
        data,
    })
}
// 获取验证码接口
export const msgCodeAPI = (data:any) => {
    return http({
        url: "/api/user/dosendmsgcode",
        method: "post",
        data,
    })
}
// 验证码是否正确接口
export const checkCodeAPI = (data:any) => {
    return http({
        url: "/api/user/docheckcode",
        method: "post",
        data,
    })
}
// 注册接口
export const userRegisterAPI = (data:any) => {
    return http({
        url: "/api/user/dofinishregister",
        method: "post",
        data,
    })
}